package com.dingwen.treasure.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 　BusinessEnum: 系统配置枚举
 * 　@author dingwen
 * 　@date 2022/5/16$
 */
@Getter
@AllArgsConstructor
public enum SysConfigEnum implements BaseEnum<Integer> {

    /**
     * 系统
     */
    SYSTEM(0, "系统"),

    /**
     * 业务
     */
    BUSINESS(1, "业务");


    /**
     * code
     */
    @EnumValue
    private final Integer code;
    /**
     * 描述
     */
    @JsonValue
    private final String description;

    /**
     * 获取枚举类描述
     *
     * @return {@link String}
     */
    @Override
    public String getEnumDescription() {
        return "系统配置";
    }
}
